package com.yyb.mapper;

import com.yyb.domain.SysOperLog;
import com.yyb.dto.SysOperLogQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LJH
* @description 针对表【sys_oper_log(操作日志记录)】的数据库操作Mapper
* @createDate 2024-03-06 21:41:24
* @Entity com.yyb.domain.SysOperLog
*/
public interface SysOperLogMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysOperLog record);

    int insertSelective(SysOperLog record);

    SysOperLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysOperLog record);

    int updateByPrimaryKey(SysOperLog record);

    /**
     * 根据条件查询操作日志
     * @param params
     * @return
     */
    List<SysOperLog> queryAllOperLog(SysOperLogQueryDTO params);

    /**
     * 批量删除操作日志
     * @param operIds
     * @return
     */
    int deleteByPrimaryKeys(@Param("operIds") Long[] operIds);

    /**
     * 清空操作日志
     * @return
     */
    int deleteAllOperLog();

}
